<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>

  <body>
    <div id="app"></div>
    <!-- 1.引入依赖 -->
    <script src="../react/react.development.js"></script>
    <script src="../react/react-dom.development.js"></script>
    <script src="../react/babel.min.js"></script>
    <!-- 2.开始开发 -->
    <script type="text/babel">
      class App extends React.Component {
        constructor() {
          super()

          this.state = {}
        }

        render() {
          return (
            /*#__PURE__*/
            React.createElement(
              'div',
              null,
              /*#__PURE__*/ React.createElement('h2', null, 'hello'),
              /*#__PURE__*/ React.createElement(
                'a',
                {
                  href: 'https://www.baidu.com',
                },
                '\u767E\u5EA6\u4E00\u4E0B'
              ),
              /*#__PURE__*/ React.createElement('img', {
                src: 'https://s1.ax1x.com/2020/05/07/Ymn0sS.png',
                alt: '',
              })
            )
          )
        }
      }
      ReactDOM.render(<App />, document.getElementById('app'))
    </script>
  </body>
</html>
